package com.sky.vo;

import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.io.Serializable;
import java.time.LocalDateTime;

/**
 * @author 贾晓晨
 * @version 1.0
 */
@Data
@Builder
@NoArgsConstructor
@AllArgsConstructor
public class DictVO implements Serializable {
    private static final long serialVersionUID = 1L;
   @ApiModelProperty("字典id")
    private Long id;
    @ApiModelProperty("字典名称")
    private String dictName;
    @ApiModelProperty("字典类型")
    private String dictType;
    @ApiModelProperty("字典状态")
    private Integer dictStatus;
    @ApiModelProperty("字典描述")
    private String dictRemark;
    @ApiModelProperty("创建时间")
    private LocalDateTime createTime;
    @ApiModelProperty("更新时间")
    private LocalDateTime updateTime;

    public String getStatusDesc() {
        return dictStatus == 1 ? "启用" : "停用";
    }
}
